﻿$(function () {
    var vm = app.editViewModel;

    app.dataservice.getSubmissions(function (data) {
        if (data.length > 0) {
            vm.setSubmissions(data);
            ko.applyBindings(vm);
        }
    })
});